package org.bees.cms.web.action.setting;

import javax.annotation.Resource;

import org.bees.cms.core.setting.Constant;
import org.bees.cms.service.Service;
import org.bees.cms.service.setting.ConstantService;
import org.bees.cms.web.action.EditActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Scope("prototype")
@Controller
public class ConstantEditAction extends EditActionSupport<Constant> {
	@Resource
	private ConstantService constantServiceBean;

	@Override
	public Service<Constant> service() {
		return constantServiceBean;
	}

	@Override
	public Constant getDomain() {
		return domain;
	}

	@Override
	public void setDomain(Constant domain) {
		this.domain = domain;
	}
}
